/**
 * @Author DengJia
 * @Date 2021/8/13 21:45
 * @Description
 */

public class ThisDemo {
    int i = 0;
    public static void main(String[] args) {
        ThisDemo demo = new ThisDemo();
        demo.incr().incr().incr().print();
    }

    public ThisDemo incr() {
        i++;
        return this;
    }

    public void print() {
        System.out.println(i);
    }

}
